css: Constify path argument to _css_selector_matches()
authorBenjamin Otte <otte@redhat.com>
Wed, 25 May 2011 15:40:03 +0000 (17:40 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 27 May 2011 14:11:09 +0000 (16:11 +0200)
It should have been const all the time, but I assumed widgetpath code
wasn't properly const. PEBKAC.

gtk/gtkcssselector.c
gtk/gtkcssselectorprivate.h

index 35db9ca7ae5fc0046db3fd8f47aca6999a28eec3..d0397a66d845e56b1d95196b4f8beb7f183fa5db 100644 (file)
@@ -183,7 +183,7 @@ _gtk_css_selector_to_string (const GtkCssSelector *selector)
 
 static gboolean
 gtk_css_selector_matches_type (const GtkCssSelector      *selector,
-                               /* const */ GtkWidgetPath *path,
+                               const GtkWidgetPath       *path,
                                guint                      id)
 {
   if (selector->name == NULL)
@@ -207,7 +207,7 @@ gtk_css_selector_matches_type (const GtkCssSelector      *selector,
 
 static gboolean
 gtk_css_selector_matches_region (const GtkCssSelector      *selector,
-                                 /* const */ GtkWidgetPath *path,
+                                 const GtkWidgetPath       *path,
                                  guint                      id,
                                  const char *               region)
 {
@@ -230,7 +230,7 @@ gtk_css_selector_matches_region (const GtkCssSelector      *selector,
 
 static gboolean
 gtk_css_selector_matches_rest (const GtkCssSelector      *selector,
-                               /* const */ GtkWidgetPath *path,
+                               const GtkWidgetPath       *path,
                                guint                      id)
 {
   if (selector->ids)
@@ -260,13 +260,13 @@ gtk_css_selector_matches_rest (const GtkCssSelector      *selector,
 
 static gboolean
 gtk_css_selector_matches_previous (const GtkCssSelector      *selector,
-                                   /* const */ GtkWidgetPath *path,
+                                   const GtkWidgetPath       *path,
                                    guint                      id,
                                    GSList                    *regions);
 
 static gboolean
 gtk_css_selector_matches_from (const GtkCssSelector      *selector,
-                               /* const */ GtkWidgetPath *path,
+                               const GtkWidgetPath       *path,
                                guint                      id,
                                GSList                    *regions)
 {
@@ -318,7 +318,7 @@ gtk_css_selector_matches_from (const GtkCssSelector      *selector,
 
 static gboolean
 gtk_css_selector_matches_previous (const GtkCssSelector      *selector,
-                                   /* const */ GtkWidgetPath *path,
+                                   const GtkWidgetPath       *path,
                                    guint                      id,
                                    GSList                    *regions)
 {
@@ -369,7 +369,7 @@ gtk_css_selector_matches_previous (const GtkCssSelector      *selector,
  **/
 gboolean
 _gtk_css_selector_matches (const GtkCssSelector      *selector,
-                           /* const */ GtkWidgetPath *path,
+                           const GtkWidgetPath       *path,
                            guint                      length)
 {
   GSList *list;
index 5a158824d81eacff2c44c429ba73a9fc537e9888..eca5135c2d6043d471a2bdde726a9efbc7e8c4e5 100644 (file)
@@ -48,7 +48,7 @@ void              _gtk_css_selector_print           (const GtkCssSelector   *sel
 GtkStateFlags     _gtk_css_selector_get_state_flags (GtkCssSelector         *selector);
 
 gboolean          _gtk_css_selector_matches         (const GtkCssSelector   *selector,
-                                                     /* const */ GtkWidgetPath *path,
+                                                     const GtkWidgetPath    *path,
                                                      guint                   length);
 int               _gtk_css_selector_compare         (const GtkCssSelector   *a,
                                                      const GtkCssSelector   *b);